<html>
<head>
<title>Welcome to CodeIgniter</title>

<style type="text/css">

body {
 background-color: #fff;
 margin: 40px;
 font-family: Lucida Grande, Verdana, Sans-serif;
 font-size: 14px;
 color: #4F5155;
}

a {
 color: #003399;
 background-color: transparent;
 font-weight: normal;
}

h1 {
 color: #444;
 background-color: transparent;
 border-bottom: 1px solid #D0D0D0;
 font-size: 16px;
 font-weight: bold;
 margin: 24px 0 2px 0;
 padding: 5px 0 6px 0;
}

code {
 font-family: Monaco, Verdana, Sans-serif;
 font-size: 12px;
 background-color: #f9f9f9;
 border: 1px solid #D0D0D0;
 color: #002166;
 display: block;
 margin: 14px 0 14px 0;
 padding: 12px 10px 12px 10px;
}

</style>
</head>
<body>

<h1>Welcome to AuthenticatedController!</h1>

<p>AuthenticatedController adds authentication, authorization, and session capability to CodeIgniter Controller classes.</p>
<hr />


<?php
        echo form_open('auth/login');
?>
<p>To see more, you will need to log in.</p>
<p>Here are some sample accounts from the SimpleAutenticator</P>
<p>
<table border=1 cellpadding=4>
<tr bgcolor=lightyellow>
	<th>username</th>
	<th>password</th>
	<th>group</th>
</tr>
<tr>
	<td>joe</td>
	<td>cat</td>
	<td>admin</td>
</tr>
<tr>
	<td>larry</td>
	<td>frog</td>
	<td>admin</td>
</tr>
<tr>
	<td>curly</td>
	<td>mouse</td>
	<td>user</td>
</tr>
<tr>
	<td>moe</td>
	<td>dog</td>
	<td>user</td>
</tr>
</table>
</p>
<table>
<tr>
<td>Username</td><td><input name=username value=username /></td>
<tr>
<td>Password</td><td><input type=password name=password /></td>
</table>
<br/>
<?php
	if (array_key_exists('url', $_GET))
	{
		echo "You will be redirected to " . $_GET['url'];
		echo "<input type=hidden name=url value=". $_GET['url'] . " />";
	}
?>
<input type=hidden name=url value="<? if (array_key_exists('url', $_GET)) { echo $_GET['url']; } ?>" />
<br/>
<input type=submit>
</form>



<p><br />Page rendered in {elapsed_time} seconds</p>

</body>
</html>
